
export class SysClass {
  public static readonly WESTERN = new SysClass('01', '西药')
  public static readonly CHINESE = new SysClass('02', '中药')
  public static readonly HERBAL = new SysClass('03', '草药')
  public static readonly NURSING_LEVEL = new SysClass('04', '护理等级')
  public static readonly NURSING = new SysClass('05', '护理常规')
  public static readonly DESCRIPTION = new SysClass('06', '描述')
  public static readonly HEAL = new SysClass('07', '治疗')
  public static readonly ILLNESS_I = new SysClass('08', '病重')
  public static readonly ILLNESS_II = new SysClass('09', '病危')
  public static readonly RESCUE = new SysClass('10', '抢救')
  public static readonly DEATH = new SysClass('11', '死亡')
  public static readonly FOOD = new SysClass('12', '膳食')
  public static readonly SKIN_TEST = new SysClass('13', '皮试')
  public static readonly TEST = new SysClass('14', '检验')
  public static readonly INSPECT = new SysClass('15', '检查')
  public static readonly TRANSFUSION = new SysClass('16', '输血')
  public static readonly OPERATION = new SysClass('17', '手术')
  public static readonly MEETING = new SysClass('18', '会诊')
  public static readonly TRANSFER = new SysClass('19', '转科')
  public static readonly EXIT = new SysClass('20', '出院')
  public static readonly OTHER = new SysClass('21', '其他')
  public static readonly MAT = new SysClass('22', '物资')
  public static readonly ZBY = new SysClass('99', '自备药')


  public static getSysClass( index : string): SysClass | undefined{
    return SYS_CLASS_MAP.get(index)
  }

  readonly code: string
  readonly name: string

  constructor(code: string, name: string) {
    this.code = code
    this.name = name
  }
}

const SYS_CLASS_MAP = new Map<string, SysClass>()

SYS_CLASS_MAP.set('01', new  SysClass('01', '西药'))
SYS_CLASS_MAP.set('02', new  SysClass('02', '中药'))
SYS_CLASS_MAP.set('03', new  SysClass('03', '草药'))
SYS_CLASS_MAP.set('04', new  SysClass('04', '护理等级'))
SYS_CLASS_MAP.set('05', new  SysClass('05', '护理常规'))
SYS_CLASS_MAP.set('06', new  SysClass('06', '描述'))
SYS_CLASS_MAP.set('07', new  SysClass('07', '治疗'))
SYS_CLASS_MAP.set('08', new  SysClass('08', '病重'))
SYS_CLASS_MAP.set('09', new  SysClass('09', '病危'))
SYS_CLASS_MAP.set('10', new  SysClass('10', '抢救'))
SYS_CLASS_MAP.set('11', new  SysClass('11', '死亡'))
SYS_CLASS_MAP.set('12', new  SysClass('12', '膳食'))
SYS_CLASS_MAP.set('13', new  SysClass('13', '皮试'))
SYS_CLASS_MAP.set('14', new  SysClass('14', '检验'))
SYS_CLASS_MAP.set('15', new  SysClass('15', '检查'))
SYS_CLASS_MAP.set('16', new  SysClass('16', '输血'))
SYS_CLASS_MAP.set('17', new  SysClass('17', '手术'))
SYS_CLASS_MAP.set('18', new  SysClass('18', '会诊'))
SYS_CLASS_MAP.set('19', new  SysClass('19', '转科'))
SYS_CLASS_MAP.set('20', new  SysClass('20', '出院'))
SYS_CLASS_MAP.set('21', new  SysClass('21', '其他'))
SYS_CLASS_MAP.set('22', new  SysClass('22', '物资'))
SYS_CLASS_MAP.set('99', new  SysClass('99', '自备药'))

